<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>输出姓名案例</title>
</head>

<body>
  <script>
  // 1.用户输入框
  // prompt('亲输入你的姓名')
  // 2.保存数据
  let uname= prompt("请你输入姓名")
  // 3.输出页面数据
  document.write(uname)
  
  </script>
</body>

</html>